<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>选择器权重</title>
		<!-- 选择器权重越高，选中几率越大 -->
		<style>
		*{  /* 权值  0    很容易被覆盖*/
		   color: #ffaa00 !important;
		   background: #55ffff ;
		}
		div{ /* 权值  1*/
			color: #ffaa00;
			background: #55ffff;
		}
		.d1{ /* 权值  10*/
			color: #ffaa00;
			background: #55ffff;
		}	
		div.d1{/* 选择器权值之和  1+10  11*/
			color: #ffaa00;
			background: #55ffff;
		}
		body div.d1{ /* 选择器权值之和  12*/
		    font-size: 25px;
			color: #ff55ff;
			background: #55ffff;
		}
		#d1{ /* 选择器权值  100*/
			color: #aaaaff;
			background: #ff55ff;
		}
		div#d1{ /* 选择器权值之和  101*/
		    font-size: 36px;
		    color: #aaaaff;
			background: #ff55ff;
		}
		div#d1:hover{ /* 选择器权值之和  111*/
			color: #00ffff;
			background: #ffaaff;
		 }
		</style>
	</head>
	<body>
		<div class="d1" id="d1" style="color: #ff0000;">Lorem ipsum dolor sit amet consectetur adipisicing elit. Minus suscipit animi iusto repellat dolorum doloribus expedita, eos natus aut? Quod nobis nesciunt explicabo minus impedit? Harum animi sunt eum at!</div>
	</body>
</html>
	